<form action="up_price.manage.php?action=save" method="post" style="line-height:35px;padding-bottom:25px" id="form_p_list">
 <table width="680" class="from_table">
  <tr>
    <th width="200" class="th2"><tpl> $langPriceAreaLowerLimit </tpl> ：</th>
    <td width="480" class="td1">￥
      <input type="text" class="txtinput"  name="txt_i_low" id="txt_i_low" />      
      <label style="display:none" for="txt_i_low" class="wrong" metaDone="true" generated="true"></label></td>
    </tr>
  <tr>
    <th width="200" class="th2"><tpl> $langPriceAreaUpperLimit </tpl>：</th>
    <td width="480" class="td1"> ￥
      <input type="text" class="txtinput" name="txt_i_high" id="txt_i_high" /> <label style="display:none" for="txt_i_high" class="wrong" metaDone="true" generated="true"></label></td>
    </tr>
  <tr>
    <th width="200" class="th2"><tpl> $langPriceAddExtent </tpl> ：</th>
    <td width="480" class="td1">￥
      <input type="text" id="txt_increment" name="txt_increment" class="txtinput" />  <label style="display:none" for="txt_increment" class="wrong" metadone="true" generated="true"></label></td>
    </tr>

</table>
<div class="table-5-bottom">
	<div class="btn_marginleft"><span class="btn_left"><input name="submit" type="submit" id="submit_add" class="btn_submit" value="<tpl> $langPriceAdd </tpl>" /></span></div>
</div>
</form>
<script>
$(document).ready(function() {
//新增价格
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
						hideLoading();
						showMessage(msg.message,msg.type);
						if(msg.type == '1'){
							ST(0,0);
							ShowDiv = "result_content";
							getPageContent("up_price.manage.php?action=ajax_list");
						}
					},
		type:      'post',
		dataType:  'json',
		clearForm: true
	};
	//新增价格表单验证
	$("#form_p_list").validate({
		errorClass: "wrong",
		rules: {
			txt_i_low: {required:true,number:true},
			txt_i_high: {required:true,number:true},
			txt_increment: {required:true,number:true}
		},
		messages: {
			txt_i_low: {required:"<tpl> $langPriceAreaLowerLimitNotNull </tpl>",number:"<tpl> $langPriceAreaLowerLimitIsNum </tpl>"},
			txt_i_high: {required:"<tpl> $langPriceAreaUpperLimitNotNull </tpl>",number:"<tpl> $langPriceAreaUpperLimitIsNum </tpl>"},
			txt_increment: {required:"<tpl> $langPriceAddExtentNotNull </tpl>",number:"<tpl> $langPriceAddExtentIsNum </tpl>"}
		},
		submitHandler: function() {
			$('#form_p_list').ajaxSubmit(options);
		}
	});
});
</script>